package T02;

public class task3 {
	
	public static void t3() {
		double a = 2;
		double b = 1;
		double c = 0;
		double sum = 0;
		for (int i = 0; i < 20; i++) {
			sum += a / b;
			c = b;
			b = a;
			a = b + c;
		}
		System.out.println(sum);
	}

	public static void main(String[] args) {
		t3();
	}

}
